led.bin: start.o led.o 
	arm-linux-gnueabihf-ld -Ttext 0x087800000 $^ -o led.elf
	arm-linux-gnueabihf-objcopy -O binary -S -g led.elf $@
	arm-linux-gnueabihf-objdump -D led.elf > led.dis
%.o:%.s
	arm-linux-gnueabihf-gcc -c $< -o $@

%.o:%.c
	arm-linux-gnueabihf-gcc -c $< -o $@

clear:
	rm *.o *.elf *.bin